package org.example.zuoye.mapper;

import org.example.zuoye.entity.Appoint;
import org.example.zuoye.entity.Doctor;

import java.util.List;

/**
* @author 86198
* @description 针对表【doctor】的数据库操作Mapper
* @createDate 2024-08-10 15:51:37
* @Entity org.example.zuoye.entity.Doctor
*/
public interface DoctorMapper {

    int deleteByPrimaryKey(Long id);

    int insert(Doctor record);

    int insertSelective(Doctor record);

    Doctor selectByPrimaryKey(Long id);

    int updateByPrimaryKeySelective(Doctor record);

    int updateByPrimaryKey(Doctor record);

    List<Doctor> search(Doctor doctor);

    /**
     * 放号id查询医生信息
     */
    Doctor selectByScheduleId(Long scheduleId);
    /**
     * 批量删除
     * @return
     */
    int deleteByIds(Integer[] ids);

    /**
     * 根据手机号查询
     * @return
     */
    Doctor selectByPhone(String phone);

    List<Doctor> findAll();
}
